package annotationTest;

import org.junit.Test;

import java.lang.annotation.Annotation;

@HelloAnno(value = "aa")
public class AnnoMain {

    @Test
    public void testAnno() {
        Annotation[] annotations = AnnoMain.class.getAnnotations();
        for (Annotation annotation : annotations) {
            System.out.println(annotation.toString());
            HelloAnno ann = (HelloAnno) annotation;
            System.out.println(ann.value());
        }

    }
}
